package com.best.oasis.settlement.common.entity.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Version;

import com.best.oasis.settlement.common.entity.base.BaseEntity;
/**
 * 系统菜单
 * @author bl00575
 *
 */
@Entity
@Table(name="ST_MENUITEM")
public class MenuItem extends BaseEntity {

	private static final long serialVersionUID = 2723183798914136110L;
	/**
	 * 显示顺序
	 */
	 @Column(nullable=true,name="sortIndex")
	private int sortIndex;
	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * 父菜单ID
	 */
	private Long parentId;
	/**
	 * 父菜单名称
	 */
	private String parentName;
	/**
	 * 权限名称
	 */
	 @Column(length=100,unique=true,name="roleName")
	private String roleName;
	/**
	 * 显示在界面上的菜单标题
	 */
	private String title;
	/**
	 * 菜单对应的模块路径
	 */
	@Column(length=500,name="location")
	private String location;
	/**
	 * 菜单描述说明
	 */
	 @Column(length=300,name="description")
	private String description;
	 @Version
	 @Column(name="optlock")
	 private Integer version;
	 
	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}
	public int getSortIndex() {
		return sortIndex;
	}
	public void setSortIndex(int sortIndex) {
		this.sortIndex = sortIndex;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getParentName() {
		return parentName;
	}
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	
}
